package com.ruibang.glass.equipment.entity.device;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel
@TableName(value = "g_equipment_scrap_report")
public class ScrapReport extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "器具编号")
    @ExcelProperty(value = {"器具编号"}, index = 1)
    private String equipmentNumber;
    @ApiModelProperty(value = "器具名称")
    @ExcelProperty(value = {"器具名称"}, index = 2)
    private String equipmentName;
    @ApiModelProperty(value = "出厂编号")
    @ExcelProperty(value = {"出厂编号"}, index = 3)
    private String manufacturerNumber;
    @ApiModelProperty(value = "使用日期")
    @ExcelProperty(value = {"使用日期"}, index = 4, converter = LocalDateTimeStringConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime useDate;
    @ApiModelProperty(value = "原使用部门")
    @ExcelProperty(value = {"原使用部门"}, index = 5)
    private String originalDepartment;
    @ApiModelProperty(value = "现存放位置")
    @ExcelProperty(value = {"现存放位置"}, index = 6)
    private String currentStorageLocation;
    @ApiModelProperty(value = "器具状况描述")
    @ExcelProperty(value = {"器具状况描述"}, index = 7)
    private String equipmentConditionDescription;
    @ApiModelProperty(value = "处理方式")
    @ExcelProperty(value = {"处理方式"}, index = 8)
    private String disposalMethod;
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = {"备注"}, index = 9)
    private String notes;
    @TableField(exist = false)
    @ExcelIgnore
    private List<String> ids;
    @ExcelIgnore
    private String instrumentId;
    @TableLogic
    private String isDelete;


}
